// -*- c-basic-offset: 2 default-tab-width: 2 indent-tabs-mode: t -*-
// vim: autoindent tabstop=2 noexpandtab shiftwidth=2 softtabstop=2
//===------------ Closure.h
//
//             This file is part of the reactor project
//                Author: R-Core Team
//
//===---------------------------------------------------------------------===//

#ifndef _CLOSURE_H_
#define _CLOSURE_H_

#include "Lambda.h"

namespace R {
  class Closure : public Lambda {
		BASE_RCLASS(Closure);
	public:
		Environment* env;

		virtual void print();
		virtual void tracer(word_t closure);

		static Closure *doNew(FunInfo *fun, Environment* env);
  };
}

#endif /* CLOSURE_H_ */
